<include file="Public/header" />
    <div class="wrapper wrapper-content animated fadeInRight">

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>会员权限分配</h5>

                            <div class="ibox-tools">
                                <a class="collapse-link" href="{:U('rbac/index')}">
                                    <i class="fa fa-chevron-up"></i>返回角色管理
                                </a>
                 
                            </div>
                        </div>
                        <div class="ibox-content">
                        <form action="{:U('Ajax/Rbac/add')}" method="post" class="cmzForm">
                        <?php foreach ($powerMenu as $key => $v): ?>
                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="8">
                                <thead>
                                <tr>

                                    <th>{$v.name}</th>
                          
                                </tr>
                                </thead>
                                <tbody>
                                
                                <tr>
                                    <td>
                                    <?php foreach ($v['child'] as $kc => $vc): ?>
										<div class="">
					                        <div class="timeline-item">
					                            <div class="row">
					                                <div class="col-xs-3 date">
					                                    <i class="fa"><input type="checkbox"  <?php if($vc['checked']){ echo "checked = 'checked'";} ?> name="power[]" value="{$vc.url}"></i> 
					                                   
					                                </div>
					                                <div class="col-xs-5 content no-top-border" style="min-height:10px;">
					                                    <p class="m-b-xs"><strong>{$vc.name}{$vc.selected}</strong>
					                                    </p>
					                                </div>
					                            </div>
					                        </div>
					                    </div>
					                <?php endforeach ?>
                                    </td>
                                </tr>
                            
                                </tbody>
                               
                            </table>
                    <?php endforeach ?>
						<hr/>
						<input type="hidden" name="id" value="{$id}">
						<a class="btn btn-primary  btn-outline cmzPost" returnurl="/Admin/Rbac/index" table="access_member">授权</a>
                           
                        
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
</form>




